<?php

namespace app\controllers;

use yii\web\HttpException;
use app\logic\ContactLogic;
use app\components\Controller;

class ContactController extends Controller
{
    public function actionIndex()
    {
        return ContactLogic::index(getParams());
    }

    /**
     * 创建客户联系人
     * @throws HttpException
     */
    public function actionCreate()
    {
        return ContactLogic::create(getParams());
    }

    /**
     * 编辑客户联系人
     * @throws HttpException
     */
    public function actionUpdate()
    {
        return ContactLogic::update(getParams());
    }


    public function actionDelete()
    {
        return ContactLogic::delete(getParams());
    }
}